<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<table width="100%">
	<tr>
		<td height="40" class="sectionheading bottom-border">
			Sending bulk email
		</td>
	</tr>
	<tr>
		<td height="8">
		</td>
	</tr>
	<tr>
		<td>
			<table width="100%">
				<tr>
					<td align="left" class="verdana12blacknormal">
						This process may take a long time. Please wait...
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Sending letter:
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Subject:</b> &nbsp;<s:property value="sendLetter.subject"/>
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Message:</b> &nbsp;<s:property value="sendLetter.message"/>
					</td>

				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						----------------------------------------------------------------------
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Total emails to send:</b> <s:text name="mailRecord.size"></s:text>
					</td>

				</tr>
				<s:iterator value="mailRecord">
					<tr>
						<td><s:property value="email" />...<s:property value="status" /></td>
					</tr>
				</s:iterator>
				<tr>
					<td align="left" class="verdana12blacknormal">
						----------------------------------------------------------------------
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Done...</b>
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Total Emails Sent:</b><s:property value="successCount" />
					</td>

				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b>Total Emails Skipped:</b><s:property value="failCount" />
					</td>
				</tr>
				<tr>
					<td align="left" class="verdana12blacknormal">
						<b> Time consumed:</b><s:property value="sentTime" /> Minutes
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>